/*
 * @Descripttion: 核酸宝项目前端
 * @version: 
 * @Author: 杜宇轩
 * @Date: 2022-05-22 05:23:33
 * @LastEditors: 杜宇轩
 * @LastEditTime: 2022-05-22 06:23:55
 */
import Vue from 'vue';

/**
 * 管理员查看检测结果
 * request: {}
 */
 export const adminCheckResult = () => {
  return Vue.$http({
    url: '/natms/reagent/Allresult',
    method: 'get'
  });
};

/**
 * 管理员修改检测结果
 * request: {
 *  reagentBottleId: "", // 试剂瓶编号
 *  samplingTime: "", // 检测时间
 *  institution: "", // 检测机构
 *  result: "" // 检测结果
 * }
 */
 export const adminUpdateResult = (data) => {
  return Vue.$http({
    url: '/natms/result/managerUpdate',
    method: 'post',
    data: {
      reagentBottleId: data.reagentBottleId,
      samplingTime: data.samplingTime,
      institution: data.institution,
      result: data.result
    }
  });
};

/**
 * 管理员删除检测结果
 * request: {
 *  reagentBottleId: "" // 试剂瓶编号
 * }
 */
 export const adminDeleteResult = (data) => {
  return Vue.$http({
    url: '/natms/result/delete',
    method: 'post',
    data: {
      reagentBottleId: data.reagentBottleId
    }
  });
};
